package com.shd.edanpei.bean;

import com.shd.edanpei.enums.GenderEnum;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;

import java.util.List;

import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by mc on 2018/9/4.
 * yang-wen-wen
 */

@Entity
public class UserBean {

        /**
         * accessToken : C92D3109FEA64F358F9B344D47C5FFFE
         * deviceId :
         * id : 55
         * mobile : 18557535009
         * nickName : 用户5009
         */

        private String accessToken;//Token
        private String accessTokenMall;//Token
        private String deviceId;//设备id
        private int id;//用户id
        private String mobile;
        private String nickName;
        private String avatarUrl;
        private int sex;
        private String birthday;
        private int roleType;//1 用户 2 经理
        private boolean isReal;//是否实名认证
        private boolean isPerfectInfo;//是否完善资料
        private int state;
        private String companyAddress;
        private String companyName;
        private String branch;//支行
        private String post;
        private String realName;
        private String idNumber;
        private String area;
        private String detailAddress;
        private String companySize;//公司规模
        private String receiptCode;//接单码
        private String companyServerPhone;//客服电话
        private String teamCode;//团队码
        private String teamName;//团队名
        private String accountNo;
        private String frontIdcardPic;//实名认证身份证 正面
        private String backIdcardPic;//实名认证身份证 反面
        private String idCardName;
        private String idCardNumber;
        private String idCardBirthday;
        private int idCardSex;


    @Generated(hash = 5754807)
    public UserBean(String accessToken, String accessTokenMall, String deviceId, int id, String mobile, String nickName, String avatarUrl,
            int sex, String birthday, int roleType, boolean isReal, boolean isPerfectInfo, int state, String companyAddress, String companyName,
            String branch, String post, String realName, String idNumber, String area, String detailAddress, String companySize,
            String receiptCode, String companyServerPhone, String teamCode, String teamName, String accountNo, String frontIdcardPic,
            String backIdcardPic, String idCardName, String idCardNumber, String idCardBirthday, int idCardSex) {
        this.accessToken = accessToken;
        this.accessTokenMall = accessTokenMall;
        this.deviceId = deviceId;
        this.id = id;
        this.mobile = mobile;
        this.nickName = nickName;
        this.avatarUrl = avatarUrl;
        this.sex = sex;
        this.birthday = birthday;
        this.roleType = roleType;
        this.isReal = isReal;
        this.isPerfectInfo = isPerfectInfo;
        this.state = state;
        this.companyAddress = companyAddress;
        this.companyName = companyName;
        this.branch = branch;
        this.post = post;
        this.realName = realName;
        this.idNumber = idNumber;
        this.area = area;
        this.detailAddress = detailAddress;
        this.companySize = companySize;
        this.receiptCode = receiptCode;
        this.companyServerPhone = companyServerPhone;
        this.teamCode = teamCode;
        this.teamName = teamName;
        this.accountNo = accountNo;
        this.frontIdcardPic = frontIdcardPic;
        this.backIdcardPic = backIdcardPic;
        this.idCardName = idCardName;
        this.idCardNumber = idCardNumber;
        this.idCardBirthday = idCardBirthday;
        this.idCardSex = idCardSex;
    }
        @Generated(hash = 1203313951)
        public UserBean() {
        }
        public String getAccessToken() {
            return accessToken;
        }

        public void setAccessToken(String accessToken) {
            this.accessToken = accessToken;
        }

        public String getDeviceId() {
            return deviceId;
        }

        public void setDeviceId(String deviceId) {
            this.deviceId = deviceId;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getAvatarUrl() {
            return avatarUrl;
        }

        public void setAvatarUrl(String avatarUrl) {
            this.avatarUrl = avatarUrl;
        }

        public String getGender() {
            return sex == GenderEnum.male.getKey() ? GenderEnum.male.getValue() : GenderEnum.female.getValue();
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public int getSex() {
            return this.sex;
        }

        public int getRoleType() {
            return roleType;
        }

        public void setRoleType(int roleType) {
            this.roleType = roleType;
        }

        public boolean isReal() {
            return isReal;
        }

        public void setReal(boolean real) {
            isReal = real;
        }

        public boolean isPerfectInfo() {
            return isPerfectInfo;
        }

        public void setPerfectInfo(boolean perfectInfo) {
            isPerfectInfo = perfectInfo;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public boolean getIsReal() {
            return this.isReal;
        }

        public void setIsReal(boolean isReal) {
            this.isReal = isReal;
        }

        public boolean getIsPerfectInfo() {
            return this.isPerfectInfo;
        }

        public void setIsPerfectInfo(boolean isPerfectInfo) {
            this.isPerfectInfo = isPerfectInfo;
        }

        public String getCompanyAddress() {
            return companyAddress;
        }

        public void setCompanyAddress(String companyAddress) {
            this.companyAddress = companyAddress;
        }

        public String getCompanyName() {
            return companyName;
        }

        public void setCompanyName(String companyName) {
            this.companyName = companyName;
        }

        public String getPost() {
            return post;
        }

        public void setPost(String post) {
            this.post = post;
        }

        public String getRealName() {
            return realName;
        }

        public void setRealName(String realName) {
            this.realName = realName;
        }

        public String getIdNumber() {
            return idNumber;
        }

        public void setIdNumber(String idNumber) {
            this.idNumber = idNumber;
        }


        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public String getBranch() {
            return branch;
        }

        public String getDetailAddress() {
            return detailAddress;
        }

        public String getCompanySize() {
            return companySize;
        }

        public void setBranch(String branch) {
            this.branch = branch;
        }

        public void setDetailAddress(String detailAddress) {
            this.detailAddress = detailAddress;
        }

        public void setCompanySize(String companySize) {
            this.companySize = companySize;
        }

        public String getReceiptCode() {
            return receiptCode;
        }

        public void setReceiptCode(String receiptCode) {
            this.receiptCode = receiptCode;
        }

        public String getCompanyServerPhone() {
            return companyServerPhone;
        }

        public void setCompanyServerPhone(String companyServerPhone) {
            this.companyServerPhone = companyServerPhone;
        }

        public String getTeamCode() {
            return teamCode;
        }

        public void setTeamCode(String teamCode) {
            this.teamCode = teamCode;
        }

        public void setAccountNo(String accountNo) {
            this.accountNo = accountNo;
        }

        public String getAccountNo() {
            return accountNo;
        }

        public String getTeamName() {
            return teamName;
        }

        public void setTeamName(String teamName) {
            this.teamName = teamName;
        }
        public String getFrontIdcardPic() {
            return frontIdcardPic;
        }

        public void setFrontIdcardPic(String frontIdcardPic) {
            this.frontIdcardPic = frontIdcardPic;
        }

        public String getBackIdcardPic() {
            return backIdcardPic;
        }

        public void setBackIdcardPic(String backIdcardPic) {
            this.backIdcardPic = backIdcardPic;
        }

    public String getIdCardName() {
        return idCardName;
    }

    public void setIdCardName(String idCardName) {
        this.idCardName = idCardName;
    }

    public String getIdCardBirthday() {
        return idCardBirthday;
    }

    public void setIdCardBirthday(String idCardBirthday) {
        this.idCardBirthday = idCardBirthday;
    }

    public int  getIdCardSex() {
        return idCardSex;
    }
    public String  getIdCardSex2() {
        return idCardSex==GenderEnum.male.getKey() ? GenderEnum.male.getValue() : GenderEnum.female.getValue();
    }
    public void setIdCardSex(int idCardSex) {
        this.idCardSex = idCardSex;
    }

    public String getIdCardNumber() {
        return idCardNumber;
    }

    public void setIdCardNumber(String idCardNumber) {
        this.idCardNumber = idCardNumber;
    }
    public String getAccessTokenMall() {
        return accessTokenMall;
    }

    public void setAccessTokenMall(String accessTokenMall) {
        this.accessTokenMall = accessTokenMall;
    }

}

